package com.zd.common.common.enums;

public enum TicketVerifyTypeEnum {
	One_Ticket_One_Brush(1, "一票一刷"),
	More_Than_One_Ticket(2, "根据购票人数一票多刷"),
	Limitless_Brushc(3,"无限次刷");
	
	private int key;
	private String value;

	private TicketVerifyTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}


	public void setKey(int key) {
		this.key = key;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}


	public static TicketVerifyTypeEnum get(int key) {
		for (TicketVerifyTypeEnum ticketVerifyType : TicketVerifyTypeEnum.values()) {
			if (ticketVerifyType.getKey() == key) {
				return ticketVerifyType;
			}
		}
		return null;
	}
}
